function uploadimport(element) {
	var myUpload = $(element + 'upload').upload(
			{
				name : 'file',
				action : '/import',
				enctype : 'multipart/form-data',
				params : {},
				onSubmit : function() {
				},
				onComplete : function(response) {
					jQuery(element + 'import').jqGrid('setGridParam', {
						datatype : "jsonstring",
						datastr : response
					}).trigger("reloadGrid");
				},
				onSelect : function() {
					myUpload.autoSubmit = false;
					var re = new RegExp("(xls|xlsx)$", "i");
					if (!re.test(myUpload.filename())) {
						var $dialog = $('<div></div>').html(
								'Chỉ chấp nhận file .xls và .xlxs!').dialog({
							autoOpen : true,
							height : 150,
							width : 200,
							modal : true,
							title : 'Chú ý',
							buttons : {
								OK : function() {
									$dialog.dialog('close');
								}
							}
						});
					} else {
						myUpload.submit();
					}
				}
			});
	$(element + 'upload').click();
}
